package zust.study.java8feature.javatime;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author senselyan
 * @Description: ${todo}
 * @date 2018/3/1311:30
 */
public class Demo2 {


    private static DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static void main(String[] args) {

//        LocalDateTime startDate = LocalDateTime.parse("2017-01-01", dtf);
        LocalDate startDate = LocalDate.parse("2017-01-01", dtf);
        System.out.println(startDate);
    }
}
